package org.flowers.unbeaten.base.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @description 菜单vo
 * @author RyanWang
 * @date 2021-07-19 17:43:58
 * @version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class MenuVo {

    @ApiModelProperty(value = "菜单ID")
    private String menuId;

    @ApiModelProperty(value = "菜单名称")
    private String menuName;

    @ApiModelProperty(value = "菜单图标")
    private String menuIcon;

    @ApiModelProperty(value = "跳转地址")
    private String menuUrl;

    @ApiModelProperty(value = "父级ID")
    private String parentId;

    @ApiModelProperty(value = "菜单类型")
    private Integer menuType;

    @ApiModelProperty(value = "子集集合")
    private List<MenuVo> children;

    @ApiModelProperty(value = "默认展开")
    private boolean spread = true;

    @ApiModelProperty(value = "节点是否选中")
    private boolean checked;

}
